/**
 * @file 基础组成组件
 */
import React from 'react'
import { CardModule, ItemType } from '@/components'
import { Button } from 'antd'
import { ItemUtils } from '@/utils'
import { Form } from 'antd'
interface IProps {
    models: any
    actions: any
    form: any
}
export default function PostForm(props: IProps) {
    const {
        models: { basicsFormFields, customFormfields },
        actions,
        form,
    } = props
    const infoProps = {
        form,
        queryCondition: ItemUtils.getItemType(_.cloneDeep(basicsFormFields)).extend([]).values(),
    }

    const basicsCardInfo = {
        title: '基础信息',
        cardProps: {},
    }

    return (
        <Form form={form}>
            <CardModule {...basicsCardInfo}>
                <ItemType {...infoProps} />
            </CardModule>
        </Form>
    )
}
